﻿/*
  +++++++++++++++++++++++++++++++++++++++++++
  +  Description: 添加 菜单表
  +  Created by 王大宸 on 2020-02-10 14:08:06
  +  Created with IntelliJ IDEA.
  ++++++++++++++++++++++++++++++++++++++++++++
 */

layui.use(['form'], function () {
    form = layui.form;
    form.render();

    /* 提交 */

    form.on('submit(saveSysMenu)', function (data) {
        let saveUrl = "/base/menu";
        $.http.post(saveUrl, data.field, function (res) {
            $.http.res(res, function (res) {
                parent.initTable();
                parent.parent.initTree();
                layer.alert(res.msg, {icon: 6}, function () {
                    $.modal.close();
                });
            })
        })
    });

});